package com.daoeping.dao;

import java.util.List;

import com.daoeping.domain.Usr_skill_detail;

public class UsrSkillDetailDao extends AllDaoSupport {
	public List<Usr_skill_detail> findAllUsrSkillDetail() {
		String sql ="select id from usr_skill_detail";
		return (List<Usr_skill_detail>) this.selectDataBySQL(sql);	
	}

	public List<Usr_skill_detail> findAllUsrSkillDetailByUserProductionID(int userproduction_id) {
		String sql = " from Usr_skill_detail  a where a.usr_userProduction.id = "+userproduction_id;
		return (List<Usr_skill_detail>) this.selectDataByHQL(sql);
	}

}
